package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.ParkingCardRefund;
import org.apache.ibatis.annotations.Param;

/**
 * 停车卡退款Mapper接口
 * 
 * @author dongdong
 * @date 2025-11-07
 */
public interface ParkingCardRefundMapper 
{
    /**
     * 查询停车卡退款
     * 
     * @param id 停车卡退款主键
     * @return 停车卡退款
     */
    public ParkingCardRefund selectParkingCardRefundById(Long id);

    /**
     * 查询停车卡退款列表
     * 
     * @param parkingCardRefund 停车卡退款
     * @return 停车卡退款集合
     */
    public List<ParkingCardRefund> selectParkingCardRefundList(ParkingCardRefund parkingCardRefund);

    /**
     * 新增停车卡退款
     * 
     * @param parkingCardRefund 停车卡退款
     * @return 结果
     */
    public int insertParkingCardRefund(ParkingCardRefund parkingCardRefund);

    /**
     * 修改停车卡退款
     * 
     * @param parkingCardRefund 停车卡退款
     * @return 结果
     */
    public int updateParkingCardRefund(ParkingCardRefund parkingCardRefund);

    /**
     * 删除停车卡退款
     * 
     * @param id 停车卡退款主键
     * @return 结果
     */
    public int deleteParkingCardRefundById(Long id);

    /**
     * 批量删除停车卡退款
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteParkingCardRefundByIds(Long[] ids);

    /**
     * 根据订单编号，退款订单状态 查询退款信息
     * @param orderNo
     * @param refundStatus
     * @return
     */
    List<ParkingCardRefund> selectParkingCardRefundByOrderNo(@Param("orderNo") String orderNo, @Param("refundStatus") Integer refundStatus);

    /**
     * 根据退款单号查询退款信息
     * @param refundNo
     * @return
     */
    ParkingCardRefund selectParkingCardRefundByRefundNo(String refundNo);
}
